facebook_user_id


语法:

facebook_user_id()


返回:

String(字符串)


描述

With this function you can poll Facebook for the user id of the currently logged in user. This will be returned as a string, with a format similar to "07778915123" which can then be used with the other Facebook functions.

NOTE: The user must be logged in to get the ID.


例如:

fb_id = facebook_user_id();

The above code gets the user ID of the currently logged in user and stores it as a string in the variable "fb_id".